import request from '../../utils/request'

//根据学生ID查询毕业设计的详细信息
export function selectProjectByStudentId(studentId) {
  return request({
    url: `/gdm/project/selectProjectByStudentId/${studentId}`,
    method: 'get',
    params: {}
  })
}

//查询所有的毕业流程信息
export function selectProjectProcess() {
  return request({
    url: `gdm/process/listNoPage`,
    method: 'get',
    params: {}
  })
}

//查询学生个人流程
export function selectStudentProcess(studentId) {
  return request({
    url: `gdm/studentprocess/infoByStudentId/${studentId}`,
    method: 'get',
    params: {}
  })
}

//查询学生个人流程
export function saveProject(guideId, address) {
  return request({
    url: `/gdm/project/save`,
    method: 'post',
    data: {
      guideId,
      address
    }
  })
}
